import {
	request
} from './http.js'

export function posInfo(params, data) { //终端查询
	return request({
		url: '/posInfo/query',
		method: 'post',
		params,
		data
	})
}

export function posTeller(params, data) { //终端操作员查询
	return request({
		url: '/posTeller/query',
		method: 'post',
		params,
		data
	})
}

export function posTellerArr(config) { //终端操作员新增
	return request({
		url: '/posTeller/',
		method: 'post',
		data: config
	})
}

export function posTellerData(params, config) { //终端操作员修改
	return request({
		url: '/posTeller/',
		method: 'PUT',
		data: config
	})
}

export function posTellerParams(params, config) { //终端操作员删除
	return request({
		url: '/posTeller/',
		method: 'DEL',
		data: config
	})
}

export function workOrderRepair(params, data) { //商户报修
	return request({
		url: '/workorder/workOrderRepair',
		method: 'post',
		params,
		data
	})
}
// export function 1(params) { //
// 	return request({
// 		url: '',
// 		method: 'get',
// 		data: params
// 	})
// }